package DAO;

public class CodeName {

    private String workClass;

    public String getWorkClass(String workClass) {
        if (workClass.equals("01")) {
            return "Normal";
        }
        if (workClass.equals("02")) {
            return "Absent";
        }
        return "Holiday";
    }
    
    public String getStartClass(String startClass){
        if (startClass.equals("00")){
            return "No Setting";
        }
        if (startClass.equals("01")){
            return "Normal";
        }
        if (startClass.equals("03")){
            return "Morning Absent";
        }
        if (startClass.equals("02")){
            return "Late";
        }
        
        return "Direct";
    }
    
    public String getEndClass(String startClass){
        if (startClass.equals("00")){
            return "No Setting";
        }
        if (startClass.equals("01")){
            return "Normal";
        }
        if (startClass.equals("02")){
            return "Early";
        }
        if (startClass.equals("02")){
            return "Afternoon Absent";
        }
        
        return "Direct";
    }
    
    public String getChecked (String checked) {
        if (checked.equals("0")) {
            return "No";
        }
        return "Yes";
    }
}
